package cmd

import (
	"fmt"
	"github.com/spf13/cobra"
	"os"
)

func Execute() {

	var rootCmd = &cobra.Command{Use: "alibabacloud-kms-agent"}

	rootCmd.AddCommand(tokenCmd)
	rootCmd.AddCommand(agentCmd)

	if err := rootCmd.Execute(); err != nil {
		_, _ = fmt.Fprintf(os.Stderr, "failed to execute cmd: %v\n", err)
		os.Exit(1)
	}
}
